Main Page | Data Structures | File List | Data Fields | Globals

BustaModelOpponent Class Reference

Opponent model. More...

#include <BustaModelOpponent.h>


Public Member Functions

 BustaModelOpponent ()
 Constructor.
 BustaModelOpponent (int h, int s, char *name)
 Constructor.
 ~BustaModelOpponent ()
 Destructor.
int getHealth ()
 gets health of character
char * getName ()
 Returns the name of the opponent.
int getTips ()
 gets amount in tipjar
BustaModelTipJargetTipJar ()
 Returns the tip jar.
bool isValid ()
 Returns whether or not the opponent's data is valid.
void setHealth (int newHealth)
 Sets the health of the opponent.
void setPlayerName (char *newName)
void setValid (bool valid)
 Sets whether or not this opponent should be viewed.


Detailed Description

Opponent model.

Opponent representation, has character, health, and tip jar


Constructor & Destructor Documentation

BustaModelOpponent::BustaModelOpponent  ) 
 

Constructor.

Initializes variables

BustaModelOpponent::BustaModelOpponent int  h,
int  s,
char *  name
 

Constructor.

Initializes variables

BustaModelOpponent::~BustaModelOpponent  ) 
 

Destructor.

Deletes tip jar


Member Function Documentation

int BustaModelOpponent::getHealth  ) 
 

gets health of character

Gets the health of the opponent

char * BustaModelOpponent::getName  ) 
 

Returns the name of the opponent.

Returns the name of the opponent

Returns:
The name of the opponent

BustaModelTipJar * BustaModelOpponent::getTipJar  ) 
 

Returns the tip jar.

Returns the tip jar associated with this opponent

Returns:
The tip jar of the opponent

int BustaModelOpponent::getTips  ) 
 

gets amount in tipjar

returns int with current amount in opponent tip jar

bool BustaModelOpponent::isValid  ) 
 

Returns whether or not the opponent's data is valid.

Returns if the opponent's data contained is actually valid. If it is not valid, the data does not represent a real opponent or is no longer correct and should not be processed.

Returns:
Whether the data for this opponent is valid

void BustaModelOpponent::setHealth int  newHealth  ) 
 

Sets the health of the opponent.

Sets the health of the opponent

Parameters:
newHealth The amount of health to assign to the opponent

void BustaModelOpponent::setPlayerName char *  newName  ) 
 

void BustaModelOpponent::setValid bool  valid  ) 
 

Sets whether or not this opponent should be viewed.

Sets whether or not this opponent should be viewed. If an opponent is not to be viewed, the data contained within is irrelevant. In the case of displaying graphics, this opponent's stats need not even be displayed.

Parameters:
valid Whether the opponent data is valid


Generated on Sun Aug 14 22:24:56 2005 for BustaSandwich Models by  doxygen 1.4.2-20050421